package com.example.capsule_kafka.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.capsule_kafka.bean.GroupMessageBean;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: zhuzhiming
 * @Date: 2022/5/3 23:35
 */
public interface GroupMessageMapper extends BaseMapper<GroupMessageBean> {
    @Select(value = "select * from group_message where room_name = #{roomName} ")
    List<GroupMessageBean> getMessagesList(String roomName);
}
